package org.lq.shopping.entity;

import java.io.Serializable;

/**
 * 收藏表  
 * @崔晏铭 77496
 *	@date 2018年9月26日
 */
public class Shop_collection implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 923221653379601542L;
	private int	goods_id; // 商品id
	private int user_id;	// 用户id
	public int getGoods_id() {
		return goods_id;
	}
	public void setGoods_id(int goods_id) {
		this.goods_id = goods_id;
	}
	public int getUser_id() {
		return user_id;
	}
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + goods_id;
		result = prime * result + user_id;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Shop_collection other = (Shop_collection) obj;
		if (goods_id != other.goods_id)
			return false;
		if (user_id != other.user_id)
			return false;
		return true;
	}
	public Shop_collection() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "Shop_collection [goods_id=" + goods_id + ", user_id=" + user_id + "]";
	}
	
}
